<?php if ( $a_Reviews ) :?>
<div id="view-review">
	<h1>Има добавени <?php echo $i_TotalReview?> мнения за тази фирма</h1>
	<div id="content-review">
		<?php foreach ( $a_Reviews as $a_Row ) : ?>
		<ul>
			<li>
				<p>
					<strong><?php echo $a_Row['Review']['name']?></strong>
					&nbsp;&nbsp;
					<font><?php echo $a_Row['Review']['email']?></font>
				</p>
				<p> 
				<?php 
					$i_MaxEn = $a_Row['Review']['rate'];
					$i_MaxDis = 5 - $i_MaxEn;
				?> 
				<?php for( $i = 0; $i < $i_MaxEn; $i ++ ) :?>
					<img src="<?php echo SITE_WEBROOT; ?>img/stars_enabled.png" width="15"/>
				<?php endfor;?>
				<?php for( $i = 0; $i < $i_MaxDis; $i ++ ) :?>
					<img src="<?php echo SITE_WEBROOT; ?>img/stars_disabled.png" width="15"/>
				<?php endfor;?>
				&nbsp;&nbsp;&nbsp;
				<span style="font-style: italic;color: #333"><?php echo date('d/m/Y', strtotime($a_Row['Review']['created']));?></span>
				</p>
				<p>
				<?php echo $a_Row['Review']['content']?>
				</p>
			</li>
		</ul>
		<br>
		<?php endforeach;?>
	</div>
</div>
<style>
	#view-review ul {padding-left: 0px}
	#view-review ul li {list-style: none;}
	#view-review ul li font {font-style: italic; color: #bbbbbb}
	#view-review p {padding-bottom: 2px;padding-top: 3px}
</style>
<?php endif;?>